package org.lds.hotkey.console.business.currhotkey.converter;

import org.lds.hotkey.console.business.currhotkey.entity.CurrHotKey;
import org.lds.hotkey.console.business.currhotkey.model.request.CurrHotKeyBaseListPageRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;


@Component
public class CurrHotKeyBaseListPageRequestToEntityConverter implements Converter<CurrHotKeyBaseListPageRequest, CurrHotKey> {

    @Override
    public CurrHotKey convert(CurrHotKeyBaseListPageRequest source) {
        return CurrHotKey.builder()
            .appId(source.getAppId())
            .key(source.getKey())
            .build();
    }

}


